/**
 * Created by 86185 in 2022/11/24 on 11:57
 */
class RegExpUtil {
  constructor() {

  }

  /**
   * 手机号脱敏
   * @param mobile
   * @returns {*}
   */
  hideMobile(mobile) {
    return mobile.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2")
  }


}

export default new RegExpUtil()